package com.order.service;

import java.sql.SQLException;

import com.order.DAO.UserDAO;
import com.order.dto.User;

public class UserService {
	
	
	public User validateUser(String userName, String password)
			throws SQLException, ClassNotFoundException
	{
		
		UserDAO userDAO = new UserDAO();
		
		 return userDAO.vaidateUser(userName.trim(), password.trim());
	}

}
